package com.yyi.springcloud.service.impl;


import com.yyi.springcloud.dao.GroupConfigMapper;
import com.yyi.springcloud.entities.GroupConfigModel;
import com.yyi.springcloud.service.Local_GroupConfigService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Local_GroupConfigServiceImpl implements Local_GroupConfigService {

    @Resource
    private GroupConfigMapper groupConfigMapper;


    @Override
    public List<GroupConfigModel> getAllGroup() {
        return groupConfigMapper.selectAll();
    }

    @Override
    public List<GroupConfigModel> getGroupConfigByCondition(GroupConfigModel groupConfigModel) {
        return groupConfigMapper.select(groupConfigModel);
    }
}

